package org.example.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.example.domain.Category;
import org.example.domain.Tag;
import org.example.domain.User;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ArticleVo implements Serializable {
    @JsonProperty(index = 1)
    private Long id;
    @JsonProperty(index = 2)
    private String title;
    @JsonProperty(index = 3)
    private String content;
    private String summary;
    private Integer commentCounts;
    private Long createDate;
    private Integer viewCounts;
    private Integer weight;
    @JsonProperty(index = 4)
    private User user;
    private Category category;
    private List<Tag> tags;
}
